﻿Public Class ImportItemDetailsBUS
    Private importitemdetailsdao As New ImportItemDetailsDAO()

    Public Function ImportItemDetails_UpdateCheck(ByVal ImportItemID As Integer, _
                                                  ByVal ItemID As Integer) As Integer
        Return importitemdetailsdao.ImportItemDetails_UpdateCheck(ImportItemID, ItemID)
    End Function

    Public Function ImportItemDetails_Delete(ByVal ImportItemDetailID As Integer) As Boolean
        Return importitemdetailsdao.ImportItemDetails_Delete(ImportItemDetailID)
    End Function

    Public Function ImportItemDetails_Insert(ByVal ImportItemID As Integer, _
                                             ByVal ItemID As Integer, _
                                             ByVal Quantity As Integer, _
                                             ByVal BuyPrice As Decimal, _
                                             ByVal SellPrice As Decimal, _
                                             ByVal CreateBy As String, _
                                             ByVal ImportDate As Date, _
                                             ByVal Tax As Boolean) As Boolean
        Return importitemdetailsdao.ImportItemDetails_Insert(ImportItemID, ItemID, Quantity, BuyPrice, SellPrice, CreateBy, ImportDate, Tax)
    End Function

    Public Function ImportItemDetails_PermitCheck(ByVal ImportItemID As Integer, _
                                                  ByVal ItemID As Integer) As Boolean
        Return importitemdetailsdao.ImportItemDetails_PermitCheck(ImportItemID, ItemID)
    End Function

End Class
